package com.ossjk.oa.accounting.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ossjk.core.vo.PagePreNextVo;
import com.ossjk.oa.accounting.entity.CwCapitals;
import com.ossjk.oa.accounting.vo.CwCapitalsVo;
import com.ossjk.oa.accounting.vo.MoneySumVo;
import com.ossjk.oa.accounting.vo.StatisticsVo;

import java.util.List;
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chair
 * @since 2020-05-14
 */
public interface ICwCapitalsService extends IService<CwCapitals> {
	
	 Page selectVoPage(Page page, Wrapper wrapper);
	
	 PagePreNextVo selectPreOrNextByMth(String midMth )  ;
	
     int countByMth(String mth ) ;
     
 	 List<CwCapitalsVo> selectCapitalsByMth( String mth);
	
 	 List<CwCapitalsVo> selectCapitalsByTypeC( String typec);
 	 
 	 //统计                                                                  type【1:区间统计，2，月度收入，3，月度支出】
 	 List<StatisticsVo> statistics( Integer type,String m1,String m2);


	List<MoneySumVo> selectSumGBBank(String mth);
	boolean cwUpdateCapitals(String id,String needrecDate);
}
